package twosum

import (
	"fmt"
)

func twoSum(nums []int, target int) []int {
	var result []int
	for i, v := range nums {
		for j, tmp := range nums {
			if (i != j) && (target == (v + tmp)) {
				result = append(result, i)
				result = append(result, j)
				break
			}
		}
	}
	fmt.Println(result)
	return result
}
